package com.dd.cloud.user.req.menu;

import com.dd.cloud.common.annotate.validation.Desc;
import com.dd.cloud.common.annotate.validation.Name;
import com.dd.cloud.common.annotate.validation.Url;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 轮播图
 * </p>
 *
 * @author czg
 * @since 2023-09-11
 */
@Data
public class AddBannerImgReq implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 跳转链接
     */
    private String skipUrl;

    @Name(begin = "名称")
    String name;

    /**
     * 备注
     */
    @Desc(begin = "备注", required = false)
    private String remarks;

    /**
     * 图片链接
     */
    @Url(begin = "图片链接")
    private String url;

    /**
     * 内容类型
     */
    @NotNull(message = "轮播类型不能为空")
    private Integer type;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态 1显示 2不显示
     */
    private Integer status;
}
